import 'package:flutter/cupertino.dart';

extension ContextUtils on BuildContext {
  MediaQueryData get media => MediaQuery.of(this);

  double get devicePixelRatio =>
      MediaQuery
          .of(this)
          .devicePixelRatio;

  double get windowWidth => media.size.width;

  double get windowHeight => media.size.height;

  double get stateBarHeight => media.padding.top;
}
